<template>
    <div>
        <div id="daohang" style="z-index: 99; position: fixed; background-color: #F4F4F4;width: 100%;">
            <van-nav-bar
                    title=""
                    left-text="返回"
                    right-text="首页"
                    left-arrow
                    @click-left="goBack(1)"
                    @click-right="goBack(2)"
            />
        </div>
        <div style="height: 50px"></div>
    </div>
</template>

<script>
    export default {
        name: "WeCahtNavBar",
        methods:{
            goBack(sta){
                if(sta == 1){
                    window.history.go(-1);
                }else{
                    window.location.href='/app/wechat/index/index/mid/2.html';
                }
            }
        }
    }
</script>

<style scoped>

</style>